home *** CD-ROM | disk | FTP | other *** search
- /*
- * Copyright 1995, 1996, 1999, 2000 by Paul Mattes.
- * Permission to use, copy, modify, and distribute this software and its
- * documentation for any purpose and without fee is hereby granted,
- * provided that the above copyright notice appear in all copies and that
- * both that copyright notice and this permission notice appear in
- * supporting documentation.
- */
-
- /*
- * hostc.h
- * Global declarations for host.c.
- */
-
- struct host {
- char *name;
- char *hostname;
- enum { PRIMARY, ALIAS, RECENT } entry_type;
- char *loginstring;
- time_t connect_time;
- struct host *prev, *next;
- };
- extern struct host *hosts;
-
- extern void Connect_action(Widget w, XEvent *event, String *params,
- Cardinal *num_params);
- extern void Disconnect_action(Widget w, XEvent *event, String *params,
- Cardinal *num_params);
- extern void Reconnect_action(Widget w, XEvent *event, String *params,
- Cardinal *num_params);
-
- /* Host connect/disconnect and state change. */
- extern void hostfile_init(void);
- extern int host_connect(const char *n);
- extern void host_connected(void);
- extern void host_disconnect(Boolean disable);
- extern void host_in3270(enum cstate);
- extern void register_schange(int tx, void (*func)(Boolean));
- extern void st_changed(int tx, Boolean mode);
-